package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目申请对象 xg_classroom_project_application
 * 
 * @author coderChen
 * @date 2024-01-09
 */
public class ClassroomProjectApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 项目主题 */
    @Excel(name = "项目主题")
    private String classTheme;

    /** 内容 */
    @Excel(name = "内容")
    private String classContent;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applicant;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applicantTime;

    /** 状态 */
    @Excel(name = "状态")
    private String projectStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassTheme(String classTheme) 
    {
        this.classTheme = classTheme;
    }

    public String getClassTheme() 
    {
        return classTheme;
    }
    public void setClassContent(String classContent) 
    {
        this.classContent = classContent;
    }

    public String getClassContent() 
    {
        return classContent;
    }
    public void setApplicant(String applicant) 
    {
        this.applicant = applicant;
    }

    public String getApplicant() 
    {
        return applicant;
    }
    public void setApplicantTime(Date applicantTime) 
    {
        this.applicantTime = applicantTime;
    }

    public Date getApplicantTime() 
    {
        return applicantTime;
    }
    public void setProjectStatus(String projectStatus) 
    {
        this.projectStatus = projectStatus;
    }

    public String getProjectStatus() 
    {
        if(projectStatus == null){
            return "待审核";
        }else{
            return projectStatus;
        }
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("classTheme", getClassTheme())
            .append("classContent", getClassContent())
            .append("applicant", getApplicant())
            .append("applicantTime", getApplicantTime())
            .append("projectStatus", getProjectStatus())
            .append("createBy", getCreateBy())
            .toString();
    }
}
